#!/bin/bash
brctl addbr br-lan
brctl addif br-lan eth0
ifconfig br-lan 192.168.3.1 up #这里的地址随便，和Wan侧不在一个网段就行
ifconfig eth0 0.0.0.0 up
sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE


#link:https://squarefong.cn/blog/post/squarefong/%E5%B0%86
